###### ELECTORAL PROXIMITY AND ISSUE-SPECIFIC RESPONSIVENESS DOCUMENTATION #######

This document describes how to replicate the analyses in "Electoral Proximity and Issue-Specific Responsiveness," published in Public Opinion Quarterly. 

For analyses in the main text, the replication code is in "poqreplicationcodefinal.R". The data that are required for this replication file consist of the legislator data, "replicationdatapoqfinal.csv", the legislator ideal point data:

"allidealMCMC.csv"
"crimidealMCMC.csv"
"econidealMCMC.csv"
"envidealMCMC.csv"

the public opinion data:

"crimmrpMCMC.csv"
"econmrpMCMC.csv"
"envmrpMCMC.csv"
"allmrpMCMC.csv"

and the Illinois roll-call vote/opinion data: 

"IllinoisestimatesAmmoMRP.csv"
"IllinoisestimatesBackgroundChecksMRP.csv"
"IllinoisestimatesCOLA25KMRP.csv"
"IllinoisestimatesConcealCarryMRP.csv"
"IllinoisestimatesGambleMRP.csv"
"IllinoisestimatesGayMarriageMRP.csv"
"IllinoisestimatesMedMJMRP.csv"
"IllinoisestimatesPenReformMRP.csv"

The analyses in the Supplementary Materials can be replicated using the file "poqreplicationcodesupplementalmaterials.R". In addition to the data files above, one also needs to use the following data files: 

"IllinoisestimatesAmmoDisaggregated.csv"
"IllinoisestimatesBackgroundChecksDisaggregated.csv"
"IllinoisestimatesCOLA25KDisaggregated.csv"
"IllinoisestimatesConcealCarryDisaggregated.csv"
"IllinoisestimatesGambleDisaggregated.csv"
"IllinoisestimatesGayMarriageDisaggregated.csv"
"IllinoisestimatesMedMJDisaggregated.csv"
"IllinoisestimatesPenReformDisaggregated.csv"





